//: Playground - noun: a place where people can play

import UIKit

// 无参无返回值
func about() -> Void {
    print("Alex")
}

func about1() {
    print("Alex")
}

about1()

// 无参有返回值
func readMessage() -> String {
    return "约吗"
}

let message = readMessage()
print(message)

// 有参无返回值
func call(phoneNumber : String) {
    print("打电话给:\(phoneNumber)")
}

call(phoneNumber: "110")

// 有参有返回值
func sum(num1 : Int, num2 : Int) -> Int {
    return num1 + num2
}

let result = sum(num1: 1, num2: 2)
print(result)